package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class BsTravelAdvert implements Serializable {
    private Integer id;

    private String adimages;

    private Integer adrank;

    private Date createtime;

    private String linkaddr;

    private Integer location;

    private String title;

    private Integer used;

    private Integer adtype;

    private Integer agentid;

    private String agentname;

    private String typename;

    private Integer type;

    private Integer num;

    private String content;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public BsTravelAdvert withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdimages() {
        return adimages;
    }

    public BsTravelAdvert withAdimages(String adimages) {
        this.setAdimages(adimages);
        return this;
    }

    public void setAdimages(String adimages) {
        this.adimages = adimages == null ? null : adimages.trim();
    }

    public Integer getAdrank() {
        return adrank;
    }

    public BsTravelAdvert withAdrank(Integer adrank) {
        this.setAdrank(adrank);
        return this;
    }

    public void setAdrank(Integer adrank) {
        this.adrank = adrank;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public BsTravelAdvert withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getLinkaddr() {
        return linkaddr;
    }

    public BsTravelAdvert withLinkaddr(String linkaddr) {
        this.setLinkaddr(linkaddr);
        return this;
    }

    public void setLinkaddr(String linkaddr) {
        this.linkaddr = linkaddr == null ? null : linkaddr.trim();
    }

    public Integer getLocation() {
        return location;
    }

    public BsTravelAdvert withLocation(Integer location) {
        this.setLocation(location);
        return this;
    }

    public void setLocation(Integer location) {
        this.location = location;
    }

    public String getTitle() {
        return title;
    }

    public BsTravelAdvert withTitle(String title) {
        this.setTitle(title);
        return this;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Integer getUsed() {
        return used;
    }

    public BsTravelAdvert withUsed(Integer used) {
        this.setUsed(used);
        return this;
    }

    public void setUsed(Integer used) {
        this.used = used;
    }

    public Integer getAdtype() {
        return adtype;
    }

    public BsTravelAdvert withAdtype(Integer adtype) {
        this.setAdtype(adtype);
        return this;
    }

    public void setAdtype(Integer adtype) {
        this.adtype = adtype;
    }

    public Integer getAgentid() {
        return agentid;
    }

    public BsTravelAdvert withAgentid(Integer agentid) {
        this.setAgentid(agentid);
        return this;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getAgentname() {
        return agentname;
    }

    public BsTravelAdvert withAgentname(String agentname) {
        this.setAgentname(agentname);
        return this;
    }

    public void setAgentname(String agentname) {
        this.agentname = agentname == null ? null : agentname.trim();
    }

    public String getTypename() {
        return typename;
    }

    public BsTravelAdvert withTypename(String typename) {
        this.setTypename(typename);
        return this;
    }

    public void setTypename(String typename) {
        this.typename = typename == null ? null : typename.trim();
    }

    public Integer getType() {
        return type;
    }

    public BsTravelAdvert withType(Integer type) {
        this.setType(type);
        return this;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getNum() {
        return num;
    }

    public BsTravelAdvert withNum(Integer num) {
        this.setNum(num);
        return this;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getContent() {
        return content;
    }

    public BsTravelAdvert withContent(String content) {
        this.setContent(content);
        return this;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", adimages=").append(adimages);
        sb.append(", adrank=").append(adrank);
        sb.append(", createtime=").append(createtime);
        sb.append(", linkaddr=").append(linkaddr);
        sb.append(", location=").append(location);
        sb.append(", title=").append(title);
        sb.append(", used=").append(used);
        sb.append(", adtype=").append(adtype);
        sb.append(", agentid=").append(agentid);
        sb.append(", agentname=").append(agentname);
        sb.append(", typename=").append(typename);
        sb.append(", type=").append(type);
        sb.append(", num=").append(num);
        sb.append(", content=").append(content);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}